package com.wmm.service.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.wmm.entity.User;
import com.wmm.mapper.UserDao;
import com.wmm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 用户表(User)表服务实现类
 *
 * @author Wmm
 * @since 2020-12-14 15:02:12
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User login(String phone, String password) {
        return userDao.login(phone,password);
    }

    @Override
    public Integer checkPhone(String phone) {
        return userDao.checkPhone(phone);
    }

    @Override
    public Integer register(String phone, String password) {
        return userDao.register(phone,password);
    }

    @Override
    public Integer updateUserInfo(Integer userId, String name, String portrait) {
        return userDao.updateUserInfo(userId, name, portrait);
    }

    @Override
    public int updatePassword(Integer userid, String password) {
        return userDao.updatePassword(userid, password);
    }
}